package game.sound;

/**
 * @author Chris
 */
public class Sound {

    AudioPlayer aplayer;

    public Sound(String soundfile) {
        aplayer = new AudioPlayer(soundfile);

    }

    public void play() {
        new Thread(aplayer).start();
    }

    public void stop() {
        aplayer.stop();
    }
}
